<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>旅游包车价格修改管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/rentproduct/tRentproduct/rentproductForTravelList">旅游包车列表</a></li>
		<li class="active"><a href="${ctx}/rentproduct/tRentprodModify/rentproductForTravelList?rentid=${tRentprodModify.rentid}">旅游包车调整列表</a></li>
		<shiro:hasPermission name="rentproduct:tRentprodModify:edit"><li><a href="${ctx}/rentproduct/tRentprodModify/rentproductForTravelForm?rentid=${tRentprodModify.rentid}">旅游包车调整添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="tRentprodModify" action="${ctx}/rentproduct/tRentprodModify/rentproductForTravelList" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<input name="rentid" type="hidden" value="${tRentprodModify.rentid}"/>
		<div>
			<label>生效时间：</label>
			<input name="efftdate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
				value="<fmt:formatDate value="${tRentprodModify.efftdate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
				onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
			<label>失效时间：</label>
			<input name="invaliddate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
				value="<fmt:formatDate value="${tRentprodModify.invaliddate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
				onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
			<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
		</div>
	</form:form>
	<sys:message content="${message}"/>
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>产品名称</th>
				<th>车型</th>
				<th>零售往返价（调整后）</th>
				<th>生效时间</th>
				<th>失效时间</th>
				<th>调整人</th>
				<shiro:hasPermission name="rentproduct:tRentprodModify:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tRentprodModify">
			<tr>
				<td>
					${tRentprodModify.rentproduct.productname}
				</td>
				<td>
					${tRentprodModify.rentproduct.cargotype.typename}
				</td>
				<td><a href="${ctx}/rentproduct/tRentprodModify/rentproductForTravelForm?rentchgid=${tRentprodModify.rentchgid}">
					${tRentprodModify.suitrtnprice}
				</a></td>
				<td>
					<fmt:formatDate value="${tRentprodModify.efftdate}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					<fmt:formatDate value="${tRentprodModify.invaliddate}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${tRentprodModify.createBy.name}
				</td>
				<shiro:hasPermission name="rentproduct:tRentprodModify:edit"><td>
					<a href="${ctx}/rentproduct/tRentprodModify/rentproductForTravelForm?rentchgid=${tRentprodModify.rentchgid}">修改</a>
					<a href="${ctx}/rentproduct/tRentprodModify/rentproductForTravelDelete?rentchgid=${tRentprodModify.rentchgid}" onclick="return confirmx('确认要删除该调整吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>